package com.ssy.lingxi.order.model.bo;

import java.io.Serializable;
import java.util.Objects;

/**
 * 商品能力 - 上架指引 - 查询商品是否配置了交易流程 - 查询中间结果
 * @author 万宁
 * @version 2.0.0
 * @date 2022-01-17
 */
public class ProductProcessBO implements Serializable {
    private static final long serialVersionUID = 7638487594320019653L;

    public ProductProcessBO(Long shopId, Boolean allProducts, Long productId, Long skuId) {
        this.shopId = shopId;
        this.allProducts = allProducts;
        this.productId = Objects.isNull(productId) ? 0L : productId;
        this.skuId = Objects.isNull(skuId) ? 0L : skuId;
    }

    /**
     * 商城Id
     */
    private Long shopId;

    /**
     * 是否适用所有商品
     */
    private Boolean allProducts;

    /**
     * 商品Id
     */
    private Long productId;

    /**
     * 商品SkuId
     */
    private Long skuId;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Boolean getAllProducts() {
        return allProducts;
    }

    public void setAllProducts(Boolean allProducts) {
        this.allProducts = allProducts;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
